import { Component, OnInit } from '@angular/core';
import { UserService } from '../user.service';


@Component({
  selector: 'app-usercenter',
  templateUrl: './usercenter.component.html',
  styleUrls: ['./usercenter.component.less']
})
export class UsercenterComponent implements OnInit {

  money = require('../../assets/img/money.png');
  detail = require('../../assets/img/detail.png');
  share = require('../../assets/img/share.png');
  rule = require('../../assets/img/rule.png');
  member = require('../../assets/img/member.png');
  agency = require('../../assets/img/money.png');


  constructor(private user: UserService) {
    this.user.getUserInfo()
    this.user.getBankInfo()
   }

   get userInfo() {
     return this.user.userInfo.data;
   }

   get bankInfo() {
    return this.user.bankInfo.data;
  }

  ngOnInit() {
  }

}
